package com.jeejam.product.dao;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.jeejam.framework.base.dao.BaseMapper;
import com.jeejam.product.pojo.Category;

public interface CategoryMapper  extends BaseMapper{
	
	public List<Category> selectRoot();
	
	public List<Category> selectRootWithoutChildren();
	
	public List<Category> selectRootByPage(Map<String, Serializable> params);
	
	public List<Category> selectChildren(int catId);
	
	public List<Category> selectSubChildren(int parentId);
	
	public int countsWithRoot();
	
	public List<Category> showIndex();
	
	public void deleteWithChildren(int id);
	
}